import { useState } from 'react'
import { Outlet, Link, useRoutes } from 'react-router-dom';
import route from '@/router';
import Home from './view/Home';

function App() {
  const [count, setCount] = useState(0)

  const showView = useRoutes(route);

  return (
    <>
      {/* <Link to={'/home'}>Home</Link> |
      <Link to={'/about'}>About</Link> |
      <Link to={'/use'}>use</Link>  */}
      {/* 占位符 */}
      {/* <Outlet></Outlet> */}
      {/* <Home /> */}
      {showView}
    </>
  )
}

export default App
